package org.springframework.messaging.handler.invocation;

import org.springframework.core.MethodParameter;
import org.springframework.lang.Nullable;
import org.springframework.util.concurrent.ListenableFuture;

public interface AsyncHandlerMethodReturnValueHandler extends HandlerMethodReturnValueHandler {

	boolean isAsyncReturnValue(Object returnValue, MethodParameter returnType);

	@Nullable
	ListenableFuture<?> toListenableFuture(Object returnValue, MethodParameter returnType);
}
